/**
 * 找到数组中最大值和位置
 */

#include <stdio.h>
int main() {
	int a[3][3];
	int i, j;
	int max, location_row, location_column;

	for (i = 0; i < 3; i ++) {
		for (j = 0; j < 3; j ++) {
			scanf("%d", &a[i][j]);
		}
	}

	max = a[0][0];
	for (i = 0; i < 3; i ++) {
		for (j = 0; j < 3; j ++) {
			if (a[i][j] > max) {
				max = a[i][j];
				location_row = i;
				location_column = j;
			}

			printf("max : %d \n", max);
		}
	}


	printf("max number is %d, it location is row: %d, column: %d", max, location_row, location_column);

	return 0;
}